package com.esapp.service.base.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.esapp.service.base.BaseInfoServere;
import com.ts.base.bean.Group;
import com.ts.base.bean.User;
import com.ts.dao.GroupMapper;
import com.ts.dao.UserMapper;

@Service("baseInfoServere")
public class BaseInfoServereImpl implements BaseInfoServere {
	
	@Autowired
	private UserMapper userMapper;
	
	@Autowired
	private GroupMapper groupMapper;

	public User checkUserInfo(User user) {
		// TODO Auto-generated method stub
		return userMapper.checkUser( user );
	}

	@Override
	public void createGroup(Group group) {
		// TODO Auto-generated method stub
		groupMapper.insert( group );
	}

	@Override
	public void createUser(User user) {
		// TODO Auto-generated method stub
		userMapper.insert( user );
	}

	@Override
	public List<User> queryAllUser() {
		// TODO Auto-generated method stub
		return userMapper.queryAllUserInfo();
	}

	@Override
	public List<Group> queryAllGroup() {
		// TODO Auto-generated method stub
		return null;
	}

}
